package com.beifu.manager.dao;

import com.beifu.manager.model.AssetScrapDetail;
import com.beifu.manager.model.AssetScrapDetailExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface AssetScrapDetailMapper {
    int countByExample(AssetScrapDetailExample example);

    int deleteByExample(AssetScrapDetailExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AssetScrapDetail record);

    int insertSelective(AssetScrapDetail record);

    List<AssetScrapDetail> selectByExample(AssetScrapDetailExample example);

    AssetScrapDetail selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AssetScrapDetail record, @Param("example") AssetScrapDetailExample example);

    int updateByExample(@Param("record") AssetScrapDetail record, @Param("example") AssetScrapDetailExample example);

    int updateByPrimaryKeySelective(AssetScrapDetail record);

    int updateByPrimaryKey(AssetScrapDetail record);

	/**
	 * 查询报废单详情
	 * @param
	 * @return
	 */
    List<AssetScrapDetail> selectScrapDetailPage(@Param("start") int start, @Param("pageNum") int pageNum,  @Param("example") AssetScrapDetailExample example);
/**
 * 获取资产类型名称和自定义编号
 * @param rfidCode
 * @return
 */
	Map<String, Object> getTypeName(String rfidCode);
	
	/**
	 * 获取报废数量
	 * @param assetScrapId
	 * @param status
	 * @return
	 */
	String getScrapNum(int assetScrapId, String status);
}